package com.tequila.core.dao;

import com.tequila.domain.dto.StoreDto;
import com.tequila.domain.entity.Store;
import com.tequila.domain.query.StoreQuery;

import java.util.List;

public interface StoreDao {
    Store queryById(Long id);

    List<StoreDto> queryByIdList(List<Long> idList);

    List<StoreDto> queryListByParam(StoreQuery query);

    List<StoreDto> queryPageListByParam(StoreQuery query);

    int queryPageCountByParam(StoreQuery query);

    int insert(Store entity);

    int insertSelective(Store entity);

    int updateById(Store param);

    int updateSelectiveById(Store param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}